<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Eyeworx_PatientBirthdayManager_RBO_PatientBirthdays extends RBO_Recordset {

    public function fields() {
        $fields = array();
        $name = new RBO_Field_Text('Patient', 50);
        $name->set_length(45)->set_required()->set_visible();
        $fields[] = $name;

        $contactNum = new RBO_Field_Text('Contact Number', 50);
        $contactNum->set_length(15)->set_visible();
        $fields[] = $contactNum;

        $bdate = new RBO_Field_Text('Birth Date', 50);
        $bdate->set_required()->set_visible();
        $fields[] = $bdate;

        $age = new RBO_Field_Text('Age', 3);
        $age->set_required()->set_visible();
        $fields[] = $age;

        return $fields;
    }

    public function table_name() {
        return 'eyeworx_patient_birthday';
    }
}

?>